import axios from 'axios'

//根据企业id获取子账户列表 
export const getSubAccountManage = params => {
   return axios({
      method: 'GET',
      url:`/account/sysuser/list`,//rentserver/project/detail/3902
      params
    })
}
// 获取用户的权限菜单
export const getJurisdiction = params => {
   return axios({
      method: 'GET',
      url:`/uc/remote/user/menu`,//rentserver/project/detail/3902
      params
    })
}
// 新增子用户
export const addChild = data => {
   return axios({
      method: 'post',
      url:`/account/sysuser`,//rentserver/project/detail/3902
      data
    })
}
// 修改子账户
export const amendChild = data => {
   return axios({
      method: 'put',
      url:`/account/sysuser`,
      data
    })
}
// 删除子账户
export const removeChild = id => {
   return axios({
      method: 'delete',
      url:`/account/sysuser/userId/${id}`,
    })
}
